/******************************************************************************* * Copyright (c) 2012, Project: FP7-ICT-257930 Aniketos * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * - Neither the name of institution nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ******************************************************************************/ /** */ package eu.aniketos.mtm.model.mtm_aniketos.impl; import eu.aniketos.mtm.model.mtm_aniketos.*; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.impl.EFactoryImpl; import org.eclipse.emf.ecore.plugin.EcorePlugin; /** * <!-- begin-user-doc --> * An implementation of the model <b>Factory</b>. * <!-- end-user-doc --> * @generated */ public class AniketosFactoryImpl extends EFactoryImpl implements AniketosFactory { /** * Creates the default factory implementation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static AniketosFactory init() { try { AniketosFactory theAniketosFactory = (AniketosFactory)EPackage.Registry.INSTANCE.getEFactory("http://aniketos.eu_mtm"); if (theAniketosFactory != null) { return theAniketosFactory; } } catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); } return new AniketosFactoryImpl(); } /** * Creates an instance of the factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public AniketosFactoryImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { case AniketosPackage.SECURITY_EXTENSION: return createSecurityExtension(); case AniketosPackage.INTEGRITY: return createIntegrity(); case AniketosPackage.TRUSTWORTHINESS: return createTrustworthiness(); case AniketosPackage.CONFIDENTIALITY: return createConfidentiality(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public SecurityExtension createSecurityExtension() { SecurityExtensionImpl securityExtension = new SecurityExtensionImpl(); return securityExtension; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Integrity createIntegrity() { IntegrityImpl integrity = new IntegrityImpl(); return integrity; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Trustworthiness createTrustworthiness() { TrustworthinessImpl trustworthiness = new TrustworthinessImpl(); return trustworthiness; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Confidentiality createConfidentiality() { ConfidentialityImpl confidentiality = new ConfidentialityImpl(); return confidentiality; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public AniketosPackage getAniketosPackage() { return (AniketosPackage)getEPackage(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @deprecated * @generated */ @Deprecated public static AniketosPackage getPackage() { return AniketosPackage.eINSTANCE; } } //AniketosFactoryImpl